<?PHP if(isset($tree['son']))foreach($tree['son'] as $node_group):?>
    <div class="node_child_box">
        <label><input class="<?PHP echo $node_checkbox_class.' node_checkbox_'.$node_group['id']; ?>" onclick="$('.node_checkbox_<?PHP echo $node_group['id']; ?>').attr('checked',$(this).is(':checked'));" type="checkbox"/><?PHP echo $node_group['name']; ?></label>
        <?PHP $this->load->view('admin/admin_role/tree',array('tree'=>$node_group,'node_checkbox_class'=>$node_checkbox_class.' node_checkbox_'.$node_group['id'])); ?>
    </div>
<?PHP endforeach;?>

<?PHP if(isset($tree['nodes'])){ ?>
<div class="node_child_box">
<?PHP foreach($tree['nodes'] as $node):?>
    <label class="node_label" ><input <?PHP echo in_array($node['id'],$node_ids)?'checked="checked"':''; ?> class="<?PHP echo $node_checkbox_class; ?>" name="node_ids[]" value="<?PHP echo $node['id']; ?>" type="checkbox"/><?PHP echo $node['title']; ?></label>
<?PHP endforeach;?>
</div>
<?PHP }?>